package day04homeworkup;

import java.util.Scanner;

public class NumDemo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个数字");
        int num =scanner.nextByte();
        if(num>0){
            System.out.println(num+"该数为正数");

        }
        else if(num<0){
            System.out.println(num+"该数为负数");
        }
        else {
            System.out.println(num+"该数为0");

        }
    }
}
